﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!-- 开始循环 -->
<!--
<th class="center" style="width:50px;">序号</th>
                <th class="center" style="width:50px;">业务编号</th>
                <th class="center">结算单位</th>
                <th class="center">申请部门</th>
                <th class="center">业务类型</th>
                <th class="center">发票类型</th>
                <th class="center">发票名目</th>
                <th class="center">费用类别</th>
                <th class="center">费用项目</th>
                <th class="center">税率</th>
                <th class="center">未含税金额</th>
                <th class="center">增值税额</th>
                <th class="center">起止港</th>
                <th class="center">开票备注信息</th>
                <th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>申请时间
                </th>
                <th class="center">申请人</th>
                <th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>处理时间
                </th>
                <th class="center">经办人</th>-->
<c:choose>
  <c:when test="${not empty data}">
    <c:if test="${QX.cha == 1 }">
                    <c:forEach items="${data}" var="d" varStatus="vs">
                        <tr>
                            <td class='center' style="width: 30px;">
                                <label><input type='checkbox' name='ids'
                                              value="${d.id }" id="${d.id }"
                                              alt="${d.id}" class="ace js_btn_qry_check_detail"/><span
                                        class="lbl"></span></label>
                            </td>
                            <td class='center' style="width: 30px;">${vs.index+1}</td>
                            <td class="center">${d.check_code}</td>
                            <td class="center">${d.app_dept_name}</td>
                            <td class="center">${d.app_time}</td>
                            <td class="center">${d.app_person_name }</td><%----%>
                            <td class="center">${d.settlement_dept }</td>
                            <td class="center">${d.invoice_type}</td>
<%--                             <td class="center">${d.fee}</td> --%>
                            <td class="center">${d.tax_rate}</td>
                            <td class="center">${d.non_tax_price}</td>
                            <td class="center">${d.value_added_tax}</td>
                            <td class="center"><input id="type" name="ids"  value="${d.type}" type="hidden"></td>
                        </tr>
                    </c:forEach>
                </c:if>
                <c:if test="${QX.cha == 0 }">
                    <tr>
                        <td colspan="100" class="center">您无权查看</td>
                    </tr>
                </c:if>
            </c:when>
            <c:otherwise>
                <tr class="main_info">
                    <td colspan="100" classk="center">没有相关数据</td>
                </tr>
            </c:otherwise>
        </c:choose>

    <tr>
    <td style="vertical-align:top;text-align: left" colspan="7">
        <div class="pagination"
             style="float: left;padding-top: 0px;margin-top: 0px;">
            <ul class="pagination pull-right no-margin">
                <li><a>共<font color=red>${page.totalResult}</font>条</a></li>
                <li><input type="number" value=""
                           class="js_toGoPage"
                           style="width:50px;text-align:center;float:left"
                           placeholder="页码"/></li>
                <li style="cursor:pointer;">
                    <a class="js_go btn btn-mini btn-success">跳转</a></li>
                <li><a class="js_page" item="1">|&lt;</a></li>
                <li><a class="js_page" item="${page.currentPage-1}">&lt;</a></li>
                <li class="active"><a><font color='white'>
                    ${page.currentPage}</font></a></li>
                <li><a class="js_page" item="${page.currentPage+1}">&gt;</a></li>
                <li><a class="js_page" item="${page.totalPage}">&gt;|</a></li>
                <%--<input class="curr" type="hidden" value="${page.currentPage}" />--%>
                <li><a>${page.showCount}条/页,共${page.totalPage}页</a></li>
                <li><select title='显示条数'
                            style="width:55px;float:left;margin-top:1px;" class="js_selectSize">
                    <option value='0'></option>
                    <option value='10'>10</option>
                    <option value='20'>20</option>
                    <option value='30'>30</option>
                    <option value='40'>40</option>
                    <option value='50'>50</option>
                    <option value='60'>60</option>
                    <option value='70'>70</option>
                    <option value='80'>80</option>
                    <option value='90'>90</option>
                    <option value='99'>99</option>
                </select>
                </li>
            </ul>
            <script type="text/javascript">
   
                $(".js_page").click(function (evt) {
                    var page = $(evt.target).attr("item");
                    $($("input[name='page.currentPage']")[1]).val(page);
                    $(".js_btn_qry_check").click();
                });
                $(".js_go").click(function (evt) {
                    var page = $($(".js_toGoPage")[1]).val();
                    $($("input[name='page.currentPage']")[1]).val(page);
                    //$($("input[name='page.showCount']")[1]).val(value);
                    $(".js_btn_qry_check").click();
                });
                $(".js_selectSize").change(function (evt){
                    var value = $(evt.target).val();
                    $($("input[name='page.currentPage']")[1]).val(1);
                    $($("input[name='page.showCount']")[1]).val(value);
                    $(".js_btn_qry_check").click();
                });
                
    	      
            </script>
            
        </div>
    </td>
</tr>